package com.alon.spring01.concurrent;

import lombok.extern.slf4j.Slf4j;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;

/**
 * @program: spring01
 * @description: 并发编程01
 * @author: yulongguang
 * @create: 2019-03-25 22:36
 **/
@Slf4j
public class Concurrent01 {

    private AtomicBoolean atomicBoolean=new AtomicBoolean(false);

    public <T extends Comparable<? super T>> void sort(List<T> list){
        for (int i=0;i<1000000;i++){
            Collections.sort(list);
        }
    }
}
